package com.jsz.peini.common.util;

import java.util.List;

import com.jsz.peini.bean.codes.SystemCity;

public class CityCode {
	
private List<SystemCity> allList;
	
	public CityCode(){
		Object codeObject = EhcacheUtil.getInstance().get("codeCache", "cityList");
		allList = (List<SystemCity>)codeObject;
	}
	
	//获取字典表对应字典码所有值
//	public List<SystemCity> getCodeList(int code){
//		List<SystemCity> codeList = new ArrayList();
//		for(SystemCity systemCity: allList){
//			if(systemCity.getCodes()==code){
//				codeList.add(systemCity);
//			}
//		}
//		return codeList;
//	}

}
